<div class="layui-form" lay-filter="layuiadmin-form-myinvoice-upload-paper" style="">
    <input type="hidden" name="id" id="hid-myinvoice-upload-paper" value="" />
    <div class="layui-form-item">
        <div class="layui-upload">
            <div>
                <input type="file" name="file" multiple id="ID-upload-paper-files" accept=".pdf,.jpg,.jpeg,.png">
            </div>
            <div style="margin-top:10px;">
                <p><span style="color:red;">提示：</span></p>
                <p><span style="color:red;">1，仅支持pdf，jpg，jpeg和png格式文件。</span></p>
                <script type="text/html" template>
                    <p><span style="color:red;">2，每个文件不超过{{ d.params.singleFileMaxLength || '' }}MB，最多不超过{{ d.params.atOnceUploadFileMaxNumber || '' }}个文件同时上传。</span></p>
                </script>
            </div>
            <div class="layui-upload-list">
                <table class="layui-table">
                    <colgroup>
                        <col style="min-width: 100px;">
                        <col width="150">
                        <col width="260">
                        <col width="150">
                    </colgroup>
                    <thead>
                    <th>文件名</th>
                    <th>大小</th>
                    <th>上传进度</th>
                    <th>操作</th>
                    </thead>
                    <tbody id="ID-upload-paper-files-list"></tbody>
                </table>
            </div>
        </div>
    </div>
    <div class="layui-form-item" style="text-align:center;">
        <input type="button" class="layui-btn" id="ID-upload-paper-files-action" value="开始上传" />
        <input type="button" class="layui-btn" lay-submit lay-filter="LAY-upload-paper-front-submit" id="ID-upload-paper-form-submit" value="提交识别" />
    </div>
</div>
<script>
    layui.use(['admin', 'form', 'upload'], function () {
        var $ = layui.$
            , form = layui.form
            , upload = layui.upload;

        //上传头像
        upload.render({
            elem: '#layuiadmin-upload-useradmin'
            , url: './res/json/upload/demo.js'
            , accept: 'images'
            , method: 'get'
            , acceptMime: 'image/*'
            , done: function (res) {
                $(this.item).prev("div").children("input").val(res.data.src)
            }
        });
    })
</script>